import { Pagination } from './pagination'

export function createPaginationObject<T>({
  items,
  totalItems,
}: {
  items: T[]
  totalItems: number
}): Pagination<T> {
  return new Pagination<T>(items, totalItems)
}
